using System;
using System.Text;

namespace Pdb.Tools
{
	public class Util
	{
		// Format a token to a string. Tokens are in hex.
		public static string AsToken(int i)
		{
			return String.Format(System.Globalization.CultureInfo.InvariantCulture, "0x{0:x}", i);
		}

		// Since we're spewing this to XML, spew as a decimal number.
		public static string AsIlOffset(int i)
		{
			return i.ToString();
		}
	}

}
